package com.learn.domain;

/**
 * @author WuLiangHang
 */
public class Order {
    private Long id;
    private Long customerId;
    private Long addressId;
    private Long createTime;
    private Customer customer;
    private Address deliveryAddress;

    public Order() {
    }

    public Order(Long id, Long customerId, Long addressId, Long createTime) {
        this.id = id;
        this.customerId = customerId;
        this.addressId = addressId;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", customerId=" + customerId +
                ", addressId=" + addressId +
                ", createTime=" + createTime +
                ", customer=" + customer +
                ", deliveryAddress=" + deliveryAddress +
                '}';
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Address getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(Address deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
}
